if '__main__' == __name__:
    from matplotlib import pyplot as plt
    import numpy as np
    
    data = np.array((
        0,
        8.09,
        6.14,
        4.37,
        4.38,
        2.38,
        2.74,
    ), dtype=float)
    
    data /= (1, 1, 2, 4, 4, 4, 4)
    data += 1.0
    
    labels = (
        'model',
        'vanilla',
        'grad acc',
        'grad ckpt',
        'fp16',
        'adafactor',
        '8-bit adam'
    )
    
    plt.bar(labels, data)
    plt.show()
    